package com.you.base.parentclass;

public class Animal {

    private String name;

    public Animal() {
        System.out.println("-----------Animal Class Construct------");
    }

    public Animal(String name) {
        this.name = name;
        System.out.println("-----------Animal Class Construct with name------");
    }
}
